import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Product from '@/components/Product'
import Users from '@/components/Users'
import Recyc from '@/components/Recyc'
import Procate from '@/components/Procate'
import Order from '@/components/Order'
import Login from '@/components/Login'

Vue.use(Router)

export default new Router({
  routes: [
    // 首页路由
    {
      path: '/',
      name: 'Product',
      component: Product
    },
    // 商品页路由
    {
      path: '/Product',
      name: 'Product',
      component: Product
    },
    // 商品分类页路由
    {
      path: '/Procate',
      name: 'Procate',
      component: Procate
    },
    // 回收站页路由
    {
      path: '/Recyc',
      name: 'Recyc',
      component: Recyc
    },
    //用户页路由
    {
      path: '/Users',
      name: 'Users',
      component: Users
    },
    //订单页路由
    {
      path: '/Order',
      name: 'Order',
      component: Order
    },
    //登录页路由
    {
      path: '/Login',
      name: 'Login',
      component: Login
    }
  ]
})
